{extend name="layout/layout" /}

{block name="pagecss"}

{/block}

{block name="content"}
<div class="row">
    <div class="col-xs-12">
        <div class="box box-success">
            <div class="box-header with-border">
                <h3 class="box-title">小程序通用模板设置</h3>
                <div class="box-tools">

                </div>
            </div>
            <div class="box-body">
                <form class="form-horizontal ajax-form" action="{:url('admin/wxcommon/save')}" method="post">
                    <div class="form-body">
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        商品页分类导航：
                                    </label>
                                    <div class="col-md-9">
                                        <label class="radio-inline">
                                            <input type="radio" name="categoryNavType" value="1" {if condition="(empty($setting)) OR($setting['categoryNavType'] == '1')"}checked="checked"{/if}> 竖向导航
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="categoryNavType" value="2" {if condition="($setting) AND($setting['categoryNavType'] == '2')"}checked="checked"{/if}> 横向导航
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        商品页轮播图：
                                    </label>
                                    <div class="col-md-9">
                                        <label class="radio-inline">
                                            <input type="radio" name="isShowBanner" value="1" {if condition="($setting) AND($setting['isShowBanner'] == '1')"}checked="checked"{/if}> 显示
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="isShowBanner" value="2" {if condition="(empty($setting)) OR($setting['isShowBanner'] == '2')"}checked="checked"{/if}> 不显示
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        商品页代金券：
                                    </label>
                                    <div class="col-md-9">
                                        <label class="radio-inline">
                                            <input type="radio" name="isShowCoupon" value="1" {if condition="($setting) AND($setting['isShowCoupon'] == '1')"}checked="checked"{/if}> 显示
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="isShowCoupon" value="2" {if condition="(empty($setting)) OR($setting['isShowCoupon'] == '2')"}checked="checked"{/if}> 不显示
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        商品页门店展示：
                                    </label>
                                    <div class="col-md-9">
                                        <label class="radio-inline">
                                            <input type="radio" name="isShowStore" value="1" {if condition="(empty($setting)) OR($setting['isShowStore'] == '1')"}checked="checked"{/if}> 显示
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="isShowStore" value="2" {if condition="($setting) AND($setting['isShowStore'] == '2')"}checked="checked"{/if}> 不显示
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <input type="hidden" name="page" value="1" >
                        <input type="hidden" name="id" value="{$setting.id|default=''}">
                        <hr />

                        <div class="form-actions">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label class="col-md-3 control-label"></label>
                                        <div class="col-md-9">
                                            <button type="button" class="btn btn-primary save-btn">
                                                保存 <i class="fa fa-floppy-o"></i>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/pages/js/wxcommon.js" type="text/javascript"></script>
{/block}